package com.maixun.lib_business_college.qa.new_qa

import com.maixun.lib_business_college.base.QABasePresenterImpl
import com.maixun.lib_business_college.entity.QABeen
import com.maixun.lib_network.entity.NetBaseListBeen

/**
 * @author：Lmoumou
 * @date：2020/11/4
 */
class NewQAPresenterImpl(view: NewQAContract.View) :
    QABasePresenterImpl<NewQAContract.View, NewQAContract.Model>(view),
    NewQAContract.Presenter {
    override val mModel: NewQAContract.Model by lazy { NewQAModelImpl() }
    override fun pQADataList(descCode: Int?, typeId: String?, title: String?, current: Int) {
        mModel.mQADataList(object :CommentObserver<NetBaseListBeen<QABeen>>(){
            override fun onSuccess(t: NetBaseListBeen<QABeen>?) {
                mView.vQADataList(t)
            }

            override fun onFail(msg: String?) {

            }
        },descCode, typeId, title, current)
    }


}